

        <g:set var="entityName" value="${message(code: 'student.label', default: 'Student')}" />
            <g:form method="post" name="createStudent">
                <g:hiddenField name="id" value="${studentInstance?.id}" />
                <g:hiddenField name="version" value="${studentInstance?.version}" />
                <div class="dialog">
                    <table>
                        <tbody>
                            <tr class="prop">
                                <td valign="top" class="name" colspan="2">
                                    <label for=""><g:message code="student.message.require.label" default="【注意】请仔细填写以下资料！" /></label>
                                </td>
                            </tr>

                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="username"><g:message code="student.username.label" default="Username" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: studentInstance, field: 'username', 'errors')}">
                                    ${studentInstance?.username}(不可修改)
                                </td>
                            </tr>

                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="realname"><g:message code="student.realname.label" default="Realname" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: studentInstance, field: 'realname', 'errors')}">
                                    <g:textField name="realname" maxlength="100" value="${studentInstance?.realname}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="mobile"><g:message code="student.mobile.label" default="Mobile" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: studentInstance, field: 'mobile', 'errors')}">
                                    <g:textField name="mobile" value="${studentInstance?.mobile}" />
                                </td>
                            </tr>

                            <tr class="prop">
                                <td valign="top" class="name" colspan="2">
                                    <label for=""><g:message code="student.message.baseinfo.label" default="基本资料和联系方式" /></label>
                                </td>
                            </tr>


                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="personId"><g:message code="student.personId.label" default="Person Id" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: studentInstance, field: 'personId', 'errors')}">
                                    <g:textField name="personId" value="${studentInstance?.personId}" />
                                </td>
                            </tr>

                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="sex"><g:message code="student.sex.label" default="Sex" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: studentInstance, field: 'sex', 'errors')}">
                                    <g:each in="['男','女']">
                                        ${it}<g:radio class="radio" name="sex" value="${it}" checked="${studentInstance.sex==it?true:false}"/>
                                    </g:each>
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="birthday"><g:message code="student.birthday.label" default="Birthday" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: studentInstance, field: 'birthday', 'errors')}">
                                    <g:datePicker name="birthday" class="select" precision="day" value="${studentInstance?.birthday}"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="area"><g:message code="student.area.label" default="Area" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: studentInstance, field: 'area', 'errors')}">
                                    <g:lookupSelect id="area" name="area" realm="area"/>
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="tel"><g:message code="student.tel.label" default="Tel" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: studentInstance, field: 'tel', 'errors')}">
                                    <g:textField name="tel" value="${studentInstance?.tel}" />
                                </td>
                            </tr>
                            
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="qq"><g:message code="student.qq.label" default="Qq" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: studentInstance, field: 'qq', 'errors')}">
                                    <g:textField name="qq" value="${studentInstance?.qq}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="email"><g:message code="student.email.label" default="Email" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: studentInstance, field: 'email', 'errors')}">
                                    <g:textField name="email" value="${studentInstance?.email}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="address"><g:message code="student.address.label" default="Address" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: studentInstance, field: 'address', 'errors')}">
                                    <g:textField name="address" value="${studentInstance?.address}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="post"><g:message code="student.post.label" default="Post" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: studentInstance, field: 'post', 'errors')}">
                                    <g:textField name="post" value="${studentInstance?.post}" />
                                </td>
                            </tr>

                            <tr class="prop">
                                <td valign="top" class="name" colspan="2">
                                    <label for=""><g:message code="student.message.info.label" default="可以填写您的具体要求及自身情况" /></label>
                                </td>
                            </tr>

                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="introduction"><g:message code="student.introduction.label" default="Introduction" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: studentInstance, field: 'introduction', 'errors')}">
                                    <g:textArea name="introduction" value="${studentInstance?.introduction}" />
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:actionSubmit class="save" action="update" value="${message(code: 'default.button.update.label', default: 'Update')}" /></span>
                </div>
            </g:form>
